#ifndef __ICC_COMM_FIRMWARE_H
#define __ICC_COMM_FIRMWARE_H
#include "slave_fw_bin.h"

#define max_buf_len (128*1024)

uint32_t check_firmware_databuf(const uint8_t* databuf, uint32_t datalen);
int firmware_file_check(void);
//uint8_t slave_firmware_loop(int fd, uint8_t* databuf, uint8_t* packbuf);
uint8_t slave_firmware_loop(void (*pfun_write)(uint8_t *data, uint32_t len));
void save_slave_firmware_ack(uint32_t idx);
//uint32_t get_slave_firmware_ack();




#endif